<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/27 13:56
 * Desc: 首页
 */
class Request_Api_V2_Index extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);

    }

    public function index_nav()
    {
        $this->rules = [
            ['mini_type', ['digit', $this->rule_min(1)]],
            ['client_no', ['not_empty', 'digit']],
        ];

        return $this;
    }

    public function foot_menu()
    {
        $this->rules = [
            ['mini_type', ['digit', $this->rule_min(1)]],
            ['client_no', ['not_empty', 'digit']],
        ];

        return $this;
    }

    public function hot_raiders()
    {
        $this->rules = [
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function hot_notes()
    {
        $this->rules = [
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function hot_zt()
    {
        $this->rules = [
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function hot_product_nav()
    {
        $this->rules = [
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function hot_product()
    {
        $this->rules = [
            ['typeid', ['not_empty']],
        ];

        return $this;
    }

    public function notice()
    {
        $this->rules = [
            ['typeid', ['digit', $this->rule_min(1)]],
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function is_show_distribute()
    {
        $this->rules = [
            ['app_type', ['not_empty', $this->rule_in_array(['h5', 'douyin', 'wx'])]],
        ];

        return $this;
    }

    public function hot_wenlv_index()
    {
        $this->rules = [
            ['row', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function wenlv_list()
    {
        $this->rules = [
            ['typeid', ['not_empty']],
            ['row', ['digit', $this->rule_min(1)]],
            ['page', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }


}